//package com.xb.system.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.xb.model.WxUser;
//import com.xb.model.req.RequestDto;
//import com.xb.system.service.QueryService;
//import com.xb.system.service.WxUserService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * @author wjh
// * @create 2024-08-05 11:29
// */
//@Service
//public class QueryServiceImpl implements QueryService {
//
//    @Resource
//    private WxUserService wxUserService;
////    @Resource
////    private TwitterUserService twitterUserService;
//
//
//    @Override
//    public void complexQuery(RequestDto requestDto) {
//        if (requestDto.getWxId() != null || !requestDto.getWxId().equals("")) {
//            LambdaQueryWrapper<WxUser> wxWrapper = new LambdaQueryWrapper<>();
//            wxWrapper.eq(WxUser::getWxId, requestDto.getWxId());
//            List<WxUser> list = wxUserService.list(wxWrapper);
//            if (list.size() != 0) {
//                System.out.println("查询结果：" + list.get(0));
//            } else {
//                System.out.println("查询结果：" + "无");
//            }
//        }
//
////        if (requestDto.getEmail() != null || !requestDto.getEmail().equals("")) {
////            LambdaQueryWrapper<TwitterUser> twitterWrapper = new LambdaQueryWrapper<>();
////            twitterWrapper.eq(TwitterUser::getEmail, requestDto.getEmail());
////            List<TwitterUser> list = twitterUserService.list(twitterWrapper);
////            if (list.size() != 0) {
////                System.out.println("查询结果：" + list.get(0));
////            } else {
////                System.out.println("查询结果：" + "无");
////            }
////        }
//    }
//}
